package com.fishery.client;

import com.fishery.entity.Result;
import com.fishery.handler.MemberServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户模块的远程调用服务
 *
 * @author Ghost
 * @since 2021-1-30
 */
@FeignClient(value = "fishery-authority-service", fallback = MemberServiceFallback.class)
public interface MemberClient {

	/**
	 * 查询基地人员数量
	 *
	 * @param baseId
	 * @return
	 */
	@GetMapping("/authority/user/getBaseMemberCount/{baseId}")
	public Result pageBaseMemberCount(@PathVariable(name = "baseId") String baseId);
}
